class App {
  constructor(app) {
    app.messenger.once('egg-ready', () => {
      const ctx = app.createAnonymousContext();
      const socketService = ctx.service.socketService;
      socketService.init(8091);
    });
  }
}

module.exports = App;